﻿using System;
using System.Runtime.Serialization;
using Structura.Infrastructure.Attributes;

namespace MusicStore.Entities
{
	/// <summary>
	/// class returned by the search it contains some informations about the albums
	/// </summary>
	[DataContract]
	public class AlbumSummary : DomainObject<int>
	{
		//[DataMember]
		//public virtual int Id { get; set; }
		
		[DataMember]
		public virtual string Title { get; set; }
		
		[DataMember]
		public virtual string Author { get; set; }
		
		[DataMember]
		public virtual string Label { get; set; }
		
		[DataMember]
		public virtual string Genre { get; set; }
		
		[DataMember]
		public virtual DateTime PublicationDate { get; set; }

		/// <summary>
		/// will contain the url (if we are in a web environment) or the path (if desktop appplication) of the image
		/// this will be usually computed using the album id 
		/// </summary>
		[DataMember]
		public virtual string Image { get; set; }
	}
}
